package com.cssl.controller;

import com.cssl.service.GroupOnService;
import com.cssl.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;
@RestController
@RequestMapping("/group")
@Api(value = "团购接口",tags = "团购相关操作")
public class GroupOnController {

    @Resource
    private GroupOnService service;
    @PostMapping("/getGroupOnGoods")
    @ApiOperation(value = "获取团购商品信息",notes = "接收page,size")
    public Result getGroupOnGoods(@RequestBody Map map){
       return service.getGroupOnGoods(map);
    }


}
